package com.wfcm.dao;

import com.wfcm.entity.Distribution;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Auther: liu
 * @Date: 2018/7/17 13:44
 * @Description: 分销功能
 */
public interface DistributionDao {

    List<Map<String, Object>> configuration();

    Distribution searchGoods(@Param("goodsId") Integer goodsId,@Param("goodsSort") Integer goodsSort,@Param("time") Integer time);

    Integer addRecord(Distribution distribution);

    List<Distribution> recordList(Distribution distribution);

    Integer recordCount(Distribution distribution);

    List<Distribution> goodsList(Distribution distribution);

    Integer goodsCount(Distribution distribution);

    List<Distribution> customerList(Distribution distribution);

    Integer customerCount(Distribution distribution);

    Distribution queryDistributionByKey(@Param("key") String key);

    Distribution searchGoodsInfo(@Param("goodsId") Integer goodsId,@Param("goodsSort") Integer goodsSort);
}